package com.lxk.pojo;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class AuctionExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AuctionExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andAuctionIdIsNull() {
            addCriterion("auction_id is null");
            return (Criteria) this;
        }

        public Criteria andAuctionIdIsNotNull() {
            addCriterion("auction_id is not null");
            return (Criteria) this;
        }

        public Criteria andAuctionIdEqualTo(Integer value) {
            addCriterion("auction_id =", value, "auctionId");
            return (Criteria) this;
        }

        public Criteria andAuctionIdNotEqualTo(Integer value) {
            addCriterion("auction_id <>", value, "auctionId");
            return (Criteria) this;
        }

        public Criteria andAuctionIdGreaterThan(Integer value) {
            addCriterion("auction_id >", value, "auctionId");
            return (Criteria) this;
        }

        public Criteria andAuctionIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("auction_id >=", value, "auctionId");
            return (Criteria) this;
        }

        public Criteria andAuctionIdLessThan(Integer value) {
            addCriterion("auction_id <", value, "auctionId");
            return (Criteria) this;
        }

        public Criteria andAuctionIdLessThanOrEqualTo(Integer value) {
            addCriterion("auction_id <=", value, "auctionId");
            return (Criteria) this;
        }

        public Criteria andAuctionIdIn(List<Integer> values) {
            addCriterion("auction_id in", values, "auctionId");
            return (Criteria) this;
        }

        public Criteria andAuctionIdNotIn(List<Integer> values) {
            addCriterion("auction_id not in", values, "auctionId");
            return (Criteria) this;
        }

        public Criteria andAuctionIdBetween(Integer value1, Integer value2) {
            addCriterion("auction_id between", value1, value2, "auctionId");
            return (Criteria) this;
        }

        public Criteria andAuctionIdNotBetween(Integer value1, Integer value2) {
            addCriterion("auction_id not between", value1, value2, "auctionId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdIsNull() {
            addCriterion("goods_id is null");
            return (Criteria) this;
        }

        public Criteria andGoodsIdIsNotNull() {
            addCriterion("goods_id is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsIdEqualTo(Integer value) {
            addCriterion("goods_id =", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotEqualTo(Integer value) {
            addCriterion("goods_id <>", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdGreaterThan(Integer value) {
            addCriterion("goods_id >", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("goods_id >=", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdLessThan(Integer value) {
            addCriterion("goods_id <", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdLessThanOrEqualTo(Integer value) {
            addCriterion("goods_id <=", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdIn(List<Integer> values) {
            addCriterion("goods_id in", values, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotIn(List<Integer> values) {
            addCriterion("goods_id not in", values, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdBetween(Integer value1, Integer value2) {
            addCriterion("goods_id between", value1, value2, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotBetween(Integer value1, Integer value2) {
            addCriterion("goods_id not between", value1, value2, "goodsId");
            return (Criteria) this;
        }

        public Criteria andAuctionOriginPriceIsNull() {
            addCriterion("auction_origin_price is null");
            return (Criteria) this;
        }

        public Criteria andAuctionOriginPriceIsNotNull() {
            addCriterion("auction_origin_price is not null");
            return (Criteria) this;
        }

        public Criteria andAuctionOriginPriceEqualTo(BigDecimal value) {
            addCriterion("auction_origin_price =", value, "auctionOriginPrice");
            return (Criteria) this;
        }

        public Criteria andAuctionOriginPriceNotEqualTo(BigDecimal value) {
            addCriterion("auction_origin_price <>", value, "auctionOriginPrice");
            return (Criteria) this;
        }

        public Criteria andAuctionOriginPriceGreaterThan(BigDecimal value) {
            addCriterion("auction_origin_price >", value, "auctionOriginPrice");
            return (Criteria) this;
        }

        public Criteria andAuctionOriginPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("auction_origin_price >=", value, "auctionOriginPrice");
            return (Criteria) this;
        }

        public Criteria andAuctionOriginPriceLessThan(BigDecimal value) {
            addCriterion("auction_origin_price <", value, "auctionOriginPrice");
            return (Criteria) this;
        }

        public Criteria andAuctionOriginPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("auction_origin_price <=", value, "auctionOriginPrice");
            return (Criteria) this;
        }

        public Criteria andAuctionOriginPriceIn(List<BigDecimal> values) {
            addCriterion("auction_origin_price in", values, "auctionOriginPrice");
            return (Criteria) this;
        }

        public Criteria andAuctionOriginPriceNotIn(List<BigDecimal> values) {
            addCriterion("auction_origin_price not in", values, "auctionOriginPrice");
            return (Criteria) this;
        }

        public Criteria andAuctionOriginPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("auction_origin_price between", value1, value2, "auctionOriginPrice");
            return (Criteria) this;
        }

        public Criteria andAuctionOriginPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("auction_origin_price not between", value1, value2, "auctionOriginPrice");
            return (Criteria) this;
        }

        public Criteria andAuctionBottomPriceIsNull() {
            addCriterion("auction_bottom_price is null");
            return (Criteria) this;
        }

        public Criteria andAuctionBottomPriceIsNotNull() {
            addCriterion("auction_bottom_price is not null");
            return (Criteria) this;
        }

        public Criteria andAuctionBottomPriceEqualTo(BigDecimal value) {
            addCriterion("auction_bottom_price =", value, "auctionBottomPrice");
            return (Criteria) this;
        }

        public Criteria andAuctionBottomPriceNotEqualTo(BigDecimal value) {
            addCriterion("auction_bottom_price <>", value, "auctionBottomPrice");
            return (Criteria) this;
        }

        public Criteria andAuctionBottomPriceGreaterThan(BigDecimal value) {
            addCriterion("auction_bottom_price >", value, "auctionBottomPrice");
            return (Criteria) this;
        }

        public Criteria andAuctionBottomPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("auction_bottom_price >=", value, "auctionBottomPrice");
            return (Criteria) this;
        }

        public Criteria andAuctionBottomPriceLessThan(BigDecimal value) {
            addCriterion("auction_bottom_price <", value, "auctionBottomPrice");
            return (Criteria) this;
        }

        public Criteria andAuctionBottomPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("auction_bottom_price <=", value, "auctionBottomPrice");
            return (Criteria) this;
        }

        public Criteria andAuctionBottomPriceIn(List<BigDecimal> values) {
            addCriterion("auction_bottom_price in", values, "auctionBottomPrice");
            return (Criteria) this;
        }

        public Criteria andAuctionBottomPriceNotIn(List<BigDecimal> values) {
            addCriterion("auction_bottom_price not in", values, "auctionBottomPrice");
            return (Criteria) this;
        }

        public Criteria andAuctionBottomPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("auction_bottom_price between", value1, value2, "auctionBottomPrice");
            return (Criteria) this;
        }

        public Criteria andAuctionBottomPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("auction_bottom_price not between", value1, value2, "auctionBottomPrice");
            return (Criteria) this;
        }

        public Criteria andAuctionPricespanIsNull() {
            addCriterion("auction_pricespan is null");
            return (Criteria) this;
        }

        public Criteria andAuctionPricespanIsNotNull() {
            addCriterion("auction_pricespan is not null");
            return (Criteria) this;
        }

        public Criteria andAuctionPricespanEqualTo(BigDecimal value) {
            addCriterion("auction_pricespan =", value, "auctionPricespan");
            return (Criteria) this;
        }

        public Criteria andAuctionPricespanNotEqualTo(BigDecimal value) {
            addCriterion("auction_pricespan <>", value, "auctionPricespan");
            return (Criteria) this;
        }

        public Criteria andAuctionPricespanGreaterThan(BigDecimal value) {
            addCriterion("auction_pricespan >", value, "auctionPricespan");
            return (Criteria) this;
        }

        public Criteria andAuctionPricespanGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("auction_pricespan >=", value, "auctionPricespan");
            return (Criteria) this;
        }

        public Criteria andAuctionPricespanLessThan(BigDecimal value) {
            addCriterion("auction_pricespan <", value, "auctionPricespan");
            return (Criteria) this;
        }

        public Criteria andAuctionPricespanLessThanOrEqualTo(BigDecimal value) {
            addCriterion("auction_pricespan <=", value, "auctionPricespan");
            return (Criteria) this;
        }

        public Criteria andAuctionPricespanIn(List<BigDecimal> values) {
            addCriterion("auction_pricespan in", values, "auctionPricespan");
            return (Criteria) this;
        }

        public Criteria andAuctionPricespanNotIn(List<BigDecimal> values) {
            addCriterion("auction_pricespan not in", values, "auctionPricespan");
            return (Criteria) this;
        }

        public Criteria andAuctionPricespanBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("auction_pricespan between", value1, value2, "auctionPricespan");
            return (Criteria) this;
        }

        public Criteria andAuctionPricespanNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("auction_pricespan not between", value1, value2, "auctionPricespan");
            return (Criteria) this;
        }

        public Criteria andAuctionBeginTimeIsNull() {
            addCriterion("auction_begin_time is null");
            return (Criteria) this;
        }

        public Criteria andAuctionBeginTimeIsNotNull() {
            addCriterion("auction_begin_time is not null");
            return (Criteria) this;
        }

        public Criteria andAuctionBeginTimeEqualTo(Date value) {
            addCriterion("auction_begin_time =", value, "auctionBeginTime");
            return (Criteria) this;
        }

        public Criteria andAuctionBeginTimeNotEqualTo(Date value) {
            addCriterion("auction_begin_time <>", value, "auctionBeginTime");
            return (Criteria) this;
        }

        public Criteria andAuctionBeginTimeGreaterThan(Date value) {
            addCriterion("auction_begin_time >", value, "auctionBeginTime");
            return (Criteria) this;
        }

        public Criteria andAuctionBeginTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("auction_begin_time >=", value, "auctionBeginTime");
            return (Criteria) this;
        }

        public Criteria andAuctionBeginTimeLessThan(Date value) {
            addCriterion("auction_begin_time <", value, "auctionBeginTime");
            return (Criteria) this;
        }

        public Criteria andAuctionBeginTimeLessThanOrEqualTo(Date value) {
            addCriterion("auction_begin_time <=", value, "auctionBeginTime");
            return (Criteria) this;
        }

        public Criteria andAuctionBeginTimeIn(List<Date> values) {
            addCriterion("auction_begin_time in", values, "auctionBeginTime");
            return (Criteria) this;
        }

        public Criteria andAuctionBeginTimeNotIn(List<Date> values) {
            addCriterion("auction_begin_time not in", values, "auctionBeginTime");
            return (Criteria) this;
        }

        public Criteria andAuctionBeginTimeBetween(Date value1, Date value2) {
            addCriterion("auction_begin_time between", value1, value2, "auctionBeginTime");
            return (Criteria) this;
        }

        public Criteria andAuctionBeginTimeNotBetween(Date value1, Date value2) {
            addCriterion("auction_begin_time not between", value1, value2, "auctionBeginTime");
            return (Criteria) this;
        }

        public Criteria andAuctionEndTimeIsNull() {
            addCriterion("auction_end_time is null");
            return (Criteria) this;
        }

        public Criteria andAuctionEndTimeIsNotNull() {
            addCriterion("auction_end_time is not null");
            return (Criteria) this;
        }

        public Criteria andAuctionEndTimeEqualTo(Date value) {
            addCriterion("auction_end_time =", value, "auctionEndTime");
            return (Criteria) this;
        }

        public Criteria andAuctionEndTimeNotEqualTo(Date value) {
            addCriterion("auction_end_time <>", value, "auctionEndTime");
            return (Criteria) this;
        }

        public Criteria andAuctionEndTimeGreaterThan(Date value) {
            addCriterion("auction_end_time >", value, "auctionEndTime");
            return (Criteria) this;
        }

        public Criteria andAuctionEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("auction_end_time >=", value, "auctionEndTime");
            return (Criteria) this;
        }

        public Criteria andAuctionEndTimeLessThan(Date value) {
            addCriterion("auction_end_time <", value, "auctionEndTime");
            return (Criteria) this;
        }

        public Criteria andAuctionEndTimeLessThanOrEqualTo(Date value) {
            addCriterion("auction_end_time <=", value, "auctionEndTime");
            return (Criteria) this;
        }

        public Criteria andAuctionEndTimeIn(List<Date> values) {
            addCriterion("auction_end_time in", values, "auctionEndTime");
            return (Criteria) this;
        }

        public Criteria andAuctionEndTimeNotIn(List<Date> values) {
            addCriterion("auction_end_time not in", values, "auctionEndTime");
            return (Criteria) this;
        }

        public Criteria andAuctionEndTimeBetween(Date value1, Date value2) {
            addCriterion("auction_end_time between", value1, value2, "auctionEndTime");
            return (Criteria) this;
        }

        public Criteria andAuctionEndTimeNotBetween(Date value1, Date value2) {
            addCriterion("auction_end_time not between", value1, value2, "auctionEndTime");
            return (Criteria) this;
        }

        public Criteria andAuctionTimespanIsNull() {
            addCriterion("auction_timespan is null");
            return (Criteria) this;
        }

        public Criteria andAuctionTimespanIsNotNull() {
            addCriterion("auction_timespan is not null");
            return (Criteria) this;
        }

        public Criteria andAuctionTimespanEqualTo(Integer value) {
            addCriterion("auction_timespan =", value, "auctionTimespan");
            return (Criteria) this;
        }

        public Criteria andAuctionTimespanNotEqualTo(Integer value) {
            addCriterion("auction_timespan <>", value, "auctionTimespan");
            return (Criteria) this;
        }

        public Criteria andAuctionTimespanGreaterThan(Integer value) {
            addCriterion("auction_timespan >", value, "auctionTimespan");
            return (Criteria) this;
        }

        public Criteria andAuctionTimespanGreaterThanOrEqualTo(Integer value) {
            addCriterion("auction_timespan >=", value, "auctionTimespan");
            return (Criteria) this;
        }

        public Criteria andAuctionTimespanLessThan(Integer value) {
            addCriterion("auction_timespan <", value, "auctionTimespan");
            return (Criteria) this;
        }

        public Criteria andAuctionTimespanLessThanOrEqualTo(Integer value) {
            addCriterion("auction_timespan <=", value, "auctionTimespan");
            return (Criteria) this;
        }

        public Criteria andAuctionTimespanIn(List<Integer> values) {
            addCriterion("auction_timespan in", values, "auctionTimespan");
            return (Criteria) this;
        }

        public Criteria andAuctionTimespanNotIn(List<Integer> values) {
            addCriterion("auction_timespan not in", values, "auctionTimespan");
            return (Criteria) this;
        }

        public Criteria andAuctionTimespanBetween(Integer value1, Integer value2) {
            addCriterion("auction_timespan between", value1, value2, "auctionTimespan");
            return (Criteria) this;
        }

        public Criteria andAuctionTimespanNotBetween(Integer value1, Integer value2) {
            addCriterion("auction_timespan not between", value1, value2, "auctionTimespan");
            return (Criteria) this;
        }

        public Criteria andAuctionNowPriceIsNull() {
            addCriterion("auction_now_price is null");
            return (Criteria) this;
        }

        public Criteria andAuctionNowPriceIsNotNull() {
            addCriterion("auction_now_price is not null");
            return (Criteria) this;
        }

        public Criteria andAuctionNowPriceEqualTo(BigDecimal value) {
            addCriterion("auction_now_price =", value, "auctionNowPrice");
            return (Criteria) this;
        }

        public Criteria andAuctionNowPriceNotEqualTo(BigDecimal value) {
            addCriterion("auction_now_price <>", value, "auctionNowPrice");
            return (Criteria) this;
        }

        public Criteria andAuctionNowPriceGreaterThan(BigDecimal value) {
            addCriterion("auction_now_price >", value, "auctionNowPrice");
            return (Criteria) this;
        }

        public Criteria andAuctionNowPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("auction_now_price >=", value, "auctionNowPrice");
            return (Criteria) this;
        }

        public Criteria andAuctionNowPriceLessThan(BigDecimal value) {
            addCriterion("auction_now_price <", value, "auctionNowPrice");
            return (Criteria) this;
        }

        public Criteria andAuctionNowPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("auction_now_price <=", value, "auctionNowPrice");
            return (Criteria) this;
        }

        public Criteria andAuctionNowPriceIn(List<BigDecimal> values) {
            addCriterion("auction_now_price in", values, "auctionNowPrice");
            return (Criteria) this;
        }

        public Criteria andAuctionNowPriceNotIn(List<BigDecimal> values) {
            addCriterion("auction_now_price not in", values, "auctionNowPrice");
            return (Criteria) this;
        }

        public Criteria andAuctionNowPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("auction_now_price between", value1, value2, "auctionNowPrice");
            return (Criteria) this;
        }

        public Criteria andAuctionNowPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("auction_now_price not between", value1, value2, "auctionNowPrice");
            return (Criteria) this;
        }

        public Criteria andWxUserIdIsNull() {
            addCriterion("wx_user_id is null");
            return (Criteria) this;
        }

        public Criteria andWxUserIdIsNotNull() {
            addCriterion("wx_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andWxUserIdEqualTo(Integer value) {
            addCriterion("wx_user_id =", value, "wxUserId");
            return (Criteria) this;
        }

        public Criteria andWxUserIdNotEqualTo(Integer value) {
            addCriterion("wx_user_id <>", value, "wxUserId");
            return (Criteria) this;
        }

        public Criteria andWxUserIdGreaterThan(Integer value) {
            addCriterion("wx_user_id >", value, "wxUserId");
            return (Criteria) this;
        }

        public Criteria andWxUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("wx_user_id >=", value, "wxUserId");
            return (Criteria) this;
        }

        public Criteria andWxUserIdLessThan(Integer value) {
            addCriterion("wx_user_id <", value, "wxUserId");
            return (Criteria) this;
        }

        public Criteria andWxUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("wx_user_id <=", value, "wxUserId");
            return (Criteria) this;
        }

        public Criteria andWxUserIdIn(List<Integer> values) {
            addCriterion("wx_user_id in", values, "wxUserId");
            return (Criteria) this;
        }

        public Criteria andWxUserIdNotIn(List<Integer> values) {
            addCriterion("wx_user_id not in", values, "wxUserId");
            return (Criteria) this;
        }

        public Criteria andWxUserIdBetween(Integer value1, Integer value2) {
            addCriterion("wx_user_id between", value1, value2, "wxUserId");
            return (Criteria) this;
        }

        public Criteria andWxUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("wx_user_id not between", value1, value2, "wxUserId");
            return (Criteria) this;
        }

        public Criteria andOrdersIdIsNull() {
            addCriterion("orders_id is null");
            return (Criteria) this;
        }

        public Criteria andOrdersIdIsNotNull() {
            addCriterion("orders_id is not null");
            return (Criteria) this;
        }

        public Criteria andOrdersIdEqualTo(Integer value) {
            addCriterion("orders_id =", value, "ordersId");
            return (Criteria) this;
        }

        public Criteria andOrdersIdNotEqualTo(Integer value) {
            addCriterion("orders_id <>", value, "ordersId");
            return (Criteria) this;
        }

        public Criteria andOrdersIdGreaterThan(Integer value) {
            addCriterion("orders_id >", value, "ordersId");
            return (Criteria) this;
        }

        public Criteria andOrdersIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("orders_id >=", value, "ordersId");
            return (Criteria) this;
        }

        public Criteria andOrdersIdLessThan(Integer value) {
            addCriterion("orders_id <", value, "ordersId");
            return (Criteria) this;
        }

        public Criteria andOrdersIdLessThanOrEqualTo(Integer value) {
            addCriterion("orders_id <=", value, "ordersId");
            return (Criteria) this;
        }

        public Criteria andOrdersIdIn(List<Integer> values) {
            addCriterion("orders_id in", values, "ordersId");
            return (Criteria) this;
        }

        public Criteria andOrdersIdNotIn(List<Integer> values) {
            addCriterion("orders_id not in", values, "ordersId");
            return (Criteria) this;
        }

        public Criteria andOrdersIdBetween(Integer value1, Integer value2) {
            addCriterion("orders_id between", value1, value2, "ordersId");
            return (Criteria) this;
        }

        public Criteria andOrdersIdNotBetween(Integer value1, Integer value2) {
            addCriterion("orders_id not between", value1, value2, "ordersId");
            return (Criteria) this;
        }

        public Criteria andBuyTimeIsNull() {
            addCriterion("buy_time is null");
            return (Criteria) this;
        }

        public Criteria andBuyTimeIsNotNull() {
            addCriterion("buy_time is not null");
            return (Criteria) this;
        }

        public Criteria andBuyTimeEqualTo(Date value) {
            addCriterion("buy_time =", value, "buyTime");
            return (Criteria) this;
        }

        public Criteria andBuyTimeNotEqualTo(Date value) {
            addCriterion("buy_time <>", value, "buyTime");
            return (Criteria) this;
        }

        public Criteria andBuyTimeGreaterThan(Date value) {
            addCriterion("buy_time >", value, "buyTime");
            return (Criteria) this;
        }

        public Criteria andBuyTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("buy_time >=", value, "buyTime");
            return (Criteria) this;
        }

        public Criteria andBuyTimeLessThan(Date value) {
            addCriterion("buy_time <", value, "buyTime");
            return (Criteria) this;
        }

        public Criteria andBuyTimeLessThanOrEqualTo(Date value) {
            addCriterion("buy_time <=", value, "buyTime");
            return (Criteria) this;
        }

        public Criteria andBuyTimeIn(List<Date> values) {
            addCriterion("buy_time in", values, "buyTime");
            return (Criteria) this;
        }

        public Criteria andBuyTimeNotIn(List<Date> values) {
            addCriterion("buy_time not in", values, "buyTime");
            return (Criteria) this;
        }

        public Criteria andBuyTimeBetween(Date value1, Date value2) {
            addCriterion("buy_time between", value1, value2, "buyTime");
            return (Criteria) this;
        }

        public Criteria andBuyTimeNotBetween(Date value1, Date value2) {
            addCriterion("buy_time not between", value1, value2, "buyTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}